package com.santiao.fuel.ui.adapter

import android.app.Activity
import android.util.Log
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.santiao.fuel.R
import com.santiao.fuel.bean.RYChargeListBean
import com.santiao.fuel.bean.SceienceItemData
import com.santiao.fuel.ui.adapter.base.BaseAdapter
import com.santiao.fuel.ui.adapter.base.BaseViewHolder

class GasNewsAdapter(activity : Activity, id : Int, myData : MutableList<SceienceItemData>) : BaseAdapter<SceienceItemData>(activity, id, myData) {
    override fun bindView(holder: BaseViewHolder, data: SceienceItemData) {

        val gas_safety_root = holder.itemView
        if (gas_safety_root != null) {
            val gas_safety_title = holder.itemView.findViewById<TextView>(R.id.gas_news_title)
            gas_safety_title.text = data.title;
        }else{
            Log.e("TAG", "bindView: 燃气使用科普页面列表子布局为空 ")
        }

    }
}
